#ifndef STATEMENT_H
#define STATEMENT_H

#include <QDialog>
#include <QStandardItem>
#include <QStandardItemModel>
#include <QFile>
#include <QList>
#include <QString>
#include <QMainWindow>

#include "bookdata.h"

namespace Ui {
class statement;
}

class statement : public QMainWindow
{
    Q_OBJECT

public:
    explicit statement(QWidget *parent = nullptr);

    bool compareDate(QString day, QString another);

    void display(BookData obj[100]);


    ~statement();

private slots:
    void on_btn_none_clicked();

    void on_btn_sale_clicked();

    void on_btn_retail_clicked();

    void on_btn_qty_clicked();

    void on_btn_wholesale_clicked();

    void on_btn_time_clicked();

    void on_btn_over_clicked();

private:
    Ui::statement *ui;
    QStandardItemModel * model;

//    QList<QString> book_lines;

};

//class timeSort : public BookData
//{
//public:
//    long QtimeToNum;
//};

#endif // STATEMENT_H
